package com.yongbao.common.exception;


import com.yongbao.common.enums.ErrorCode;

/**
 * 业务异常
 */
public class BusinessException extends BaseException {
    private static final long serialVersionUID = 8562984583878104943L;

    public BusinessException(ErrorCode errorCode, String msg) {
        super(errorCode, msg);
    }

    public BusinessException(ErrorCode errorCode, Exception e) {
        super(errorCode, e);
    }

    public BusinessException(ErrorCode errorCode) {
        super(errorCode);
    }


    public BusinessException(String msg) {
        super(ErrorCode.PARAM_ERROR, msg);
    }

    public BusinessException(ErrorCode errorCode, Object params) {
        super(errorCode, params);
    }

    public BusinessException(ErrorCode errorCode, String msg, Exception e) {
        super(errorCode, msg, e);
    }
}
